
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>源码阅读 · Aivin开发笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Aivin">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="其他框架源码.html" />
    
    
    <link rel="prev" href="../doc/Android常用代码.html" />
    

    
        <link rel="shortcut icon" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    首页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../doc/常用网站.html">
            
                <a href="../doc/常用网站.html">
            
                    
                    常用网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../常用软件/常用软件和框架.html">
            
                <a href="../常用软件/常用软件和框架.html">
            
                    
                    常用软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../doc/开发规范.html">
            
                <a href="../doc/开发规范.html">
            
                    
                    开发规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../doc/开源软件.html">
            
                <a href="../doc/开源软件.html">
            
                    
                    开源软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../doc/Android常用代码.html">
            
                <a href="../doc/Android常用代码.html">
            
                    
                    Android常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7" data-path="源码阅读配置.html">
            
                <a href="源码阅读配置.html">
            
                    
                    源码阅读
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="其他框架源码.html">
            
                <a href="其他框架源码.html">
            
                    
                    其他框架源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../产品经理/产品经理.html">
            
                <a href="../产品经理/产品经理.html">
            
                    
                    产品经理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../设计模式/模式详解.html">
            
                <a href="../设计模式/模式详解.html">
            
                    
                    模式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../设计模式/mvc等.html">
            
                <a href="../设计模式/mvc等.html">
            
                    
                    mvc等
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    基本算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    常用数据结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../常用算法/算法术语.html">
            
                <a href="../常用算法/算法术语.html">
            
                    
                    算法术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../常用算法/排序算法.html">
            
                <a href="../常用算法/排序算法.html">
            
                    
                    排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../常用算法/查找算法.html">
            
                <a href="../常用算法/查找算法.html">
            
                    
                    查找算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../常用算法/大数相加.html">
            
                <a href="../常用算法/大数相加.html">
            
                    
                    大数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.6" data-path="../常用算法/集合的所有子集.html">
            
                <a href="../常用算法/集合的所有子集.html">
            
                    
                    获得集合的所有子集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.7" data-path="../常用算法/扫描线种子填充算法.html">
            
                <a href="../常用算法/扫描线种子填充算法.html">
            
                    
                    扫描线种子填充算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.8" data-path="../常用算法/其他算法.html">
            
                <a href="../常用算法/其他算法.html">
            
                    
                    其他算法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../java基础/原码补码反码.html">
            
                <a href="../java基础/原码补码反码.html">
            
                    
                    Java部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../java基础/原码补码反码.html">
            
                <a href="../java基础/原码补码反码.html">
            
                    
                    原码补码反码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../java基础/java常用代码.html">
            
                <a href="../java基础/java常用代码.html">
            
                    
                    java常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../java基础/JVM详解.html">
            
                <a href="../java基础/JVM详解.html">
            
                    
                    JVM详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../java基础/类加载机制.html">
            
                <a href="../java基础/类加载机制.html">
            
                    
                    类加载机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../java基础/内存模型.html">
            
                <a href="../java基础/内存模型.html">
            
                    
                    内存模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../java基础/GC机制.html">
            
                <a href="../java基础/GC机制.html">
            
                    
                    GC机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../java基础/对象内存布局.html">
            
                <a href="../java基础/对象内存布局.html">
            
                    
                    对象内存布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../java基础/继承多态.html">
            
                <a href="../java基础/继承多态.html">
            
                    
                    继承和多态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../java基础/相等判断.html">
            
                <a href="../java基础/相等判断.html">
            
                    
                    相等判断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../java基础/Java容器类.html">
            
                <a href="../java基础/Java容器类.html">
            
                    
                    Java容器类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.11" data-path="../java基础/Java枚举.html">
            
                <a href="../java基础/Java枚举.html">
            
                    
                    Java枚举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.12" data-path="../java基础/自定义异常.html">
            
                <a href="../java基础/自定义异常.html">
            
                    
                    自定义异常
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.13" data-path="../java基础/深度拷贝.html">
            
                <a href="../java基础/深度拷贝.html">
            
                    
                    深度拷贝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.14" data-path="../java基础/泛型详解.html">
            
                <a href="../java基础/泛型详解.html">
            
                    
                    泛型详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.15" data-path="../java基础/线程详解.html">
            
                <a href="../java基础/线程详解.html">
            
                    
                    线程详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.16" data-path="../java基础/java注解.html">
            
                <a href="../java基础/java注解.html">
            
                    
                    注解详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.17" data-path="../java基础/数据解析.html">
            
                <a href="../java基础/数据解析.html">
            
                    
                    数据解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.18" data-path="../java基础/java8新特性.html">
            
                <a href="../java基础/java8新特性.html">
            
                    
                    Java8新特性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../android基础/android零散知识.html">
            
                <a href="../android基础/android零散知识.html">
            
                    
                    Android部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../android基础/基础控件使用.html">
            
                <a href="../android基础/基础控件使用.html">
            
                    
                    基础控件使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../android基础/android零散知识.html">
            
                <a href="../android基础/android零散知识.html">
            
                    
                    Android零散知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../android基础/android坐标体系.html">
            
                <a href="../android基础/android坐标体系.html">
            
                    
                    Android坐标体系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="../android基础/APP的启动流程.html">
            
                <a href="../android基础/APP的启动流程.html">
            
                    
                    APP启动流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="../android基础/View加载流程.html">
            
                <a href="../android基础/View加载流程.html">
            
                    
                    View加载流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="../android基础/事件分发机制.html">
            
                <a href="../android基础/事件分发机制.html">
            
                    
                    事件分发机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="../android基础/控件绘制流程.html">
            
                <a href="../android基础/控件绘制流程.html">
            
                    
                    控件绘制流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.8" data-path="../android基础/常用shape.html">
            
                <a href="../android基础/常用shape.html">
            
                    
                    常用shape
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.9" data-path="../android基础/进程通信.html">
            
                <a href="../android基础/进程通信.html">
            
                    
                    进程通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.10" data-path="../通信方式/通信方式详解.html">
            
                <a href="../通信方式/通信方式详解.html">
            
                    
                    通信方式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.11" data-path="../android基础/Binder详解.html">
            
                <a href="../android基础/Binder详解.html">
            
                    
                    Binder详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.12" data-path="../android基础/Handler详解.html">
            
                <a href="../android基础/Handler详解.html">
            
                    
                    Handle详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.13" data-path="../android基础/Fragment详解.html">
            
                <a href="../android基础/Fragment详解.html">
            
                    
                    Fragment详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.14" data-path="../android基础/Activity详解.html">
            
                <a href="../android基础/Activity详解.html">
            
                    
                    Activity详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.15" data-path="../android基础/BroadcastReceiver.html">
            
                <a href="../android基础/BroadcastReceiver.html">
            
                    
                    BroadcastReceiver详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.16" data-path="../android基础/Service服务.html">
            
                <a href="../android基础/Service服务.html">
            
                    
                    Service详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.17" data-path="../android基础/动画详解.html">
            
                <a href="../android基础/动画详解.html">
            
                    
                    动画详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.18" data-path="../android基础/屏幕刷新机制.html">
            
                <a href="../android基础/屏幕刷新机制.html">
            
                    
                    屏幕刷新机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.19" data-path="../android基础/屏幕适配.html">
            
                <a href="../android基础/屏幕适配.html">
            
                    
                    屏幕适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.20" data-path="../android基础/图片加载详解.html">
            
                <a href="../android基础/图片加载详解.html">
            
                    
                    图片加载详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.21" data-path="../android基础/WebView详解.html">
            
                <a href="../android基础/WebView详解.html">
            
                    
                    WebView详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.22" data-path="../android基础/沉浸式.html">
            
                <a href="../android基础/沉浸式.html">
            
                    
                    沉浸式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.23" data-path="../android基础/相机模块.html">
            
                <a href="../android基础/相机模块.html">
            
                    
                    相机模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.24" data-path="../android基础/地图模块.html">
            
                <a href="../android基础/地图模块.html">
            
                    
                    地图模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.25" data-path="../android基础/Androidstudio插件开发.html">
            
                <a href="../android基础/Androidstudio插件开发.html">
            
                    
                    Androidstudio插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.26" data-path="../android基础/Apk插件化开发.html">
            
                <a href="../android基础/Apk插件化开发.html">
            
                    
                    Apk插件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.27" data-path="../android基础/App组件化开发.html">
            
                <a href="../android基础/App组件化开发.html">
            
                    
                    App组件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.28" data-path="../android基础/sdk开发.html">
            
                <a href="../android基础/sdk开发.html">
            
                    
                    sdk开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.29" data-path="../android基础/APP优化.html">
            
                <a href="../android基础/APP优化.html">
            
                    
                    APP优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.30" data-path="../android基础/项目参数配置.html">
            
                <a href="../android基础/项目参数配置.html">
            
                    
                    项目参数配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.31" data-path="../android基础/App发布.html">
            
                <a href="../android基础/App发布.html">
            
                    
                    App发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.32" data-path="../android基础/Android外挂.html">
            
                <a href="../android基础/Android外挂.html">
            
                    
                    Android外挂
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.33" data-path="../android基础/Android字节码插桩.html">
            
                <a href="../android基础/Android字节码插桩.html">
            
                    
                    Android字节码插桩
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.34" data-path="../android基础/智能家居.html">
            
                <a href="../android基础/智能家居.html">
            
                    
                    智能家居
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../python/python爬虫.html">
            
                <a href="../python/python爬虫.html">
            
                    
                    python爬虫
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../gradle/Groovy.html">
            
                <a href="../gradle/Groovy.html">
            
                    
                    Groovy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../kotlin/kotlin部分.html">
            
                <a href="../kotlin/kotlin部分.html">
            
                    
                    kotlin部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../flutter/flutter部分.html">
            
                <a href="../flutter/flutter部分.html">
            
                    
                    flutter部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    native部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../native/Linux.html">
            
                <a href="../native/Linux.html">
            
                    
                    Linux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    cCpp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../native/NDK.html">
            
                <a href="../native/NDK.html">
            
                    
                    NDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../native/系统编译剪裁.html">
            
                <a href="../native/系统编译剪裁.html">
            
                    
                    系统编译剪裁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.5" data-path="../native/音视频.html">
            
                <a href="../native/音视频.html">
            
                    
                    音视频
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.6" data-path="../native/音视频第三方库.html">
            
                <a href="../native/音视频第三方库.html">
            
                    
                    音视频第三方库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.7" data-path="../native/相关代码.html">
            
                <a href="../native/相关代码.html">
            
                    
                    相关代码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../server/服务器部分.html">
            
                <a href="../server/服务器部分.html">
            
                    
                    服务器部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../webDev/web部分.html">
            
                <a href="../webDev/web部分.html">
            
                    
                    web部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../人工智能/人工智能相关概念.html">
            
                <a href="../人工智能/人工智能相关概念.html">
            
                    
                    人工智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../面试真题/极飞.html">
            
                <a href="../面试真题/极飞.html">
            
                    
                    面试真题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >源码阅读</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x5B89;&#x5353;&#x5386;&#x53F2;&#x7248;&#x672C;"><b>1. </b>&#x5B89;&#x5353;&#x5386;&#x53F2;&#x7248;&#x672C;</a></li><li><span class="title-icon "></span><a href="#&#x7CFB;&#x7EDF;&#x6E90;&#x7801;&#x9605;&#x8BFB;"><b>2. </b>&#x7CFB;&#x7EDF;&#x6E90;&#x7801;&#x9605;&#x8BFB;</a></li><ul><li><span class="title-icon "></span><a href="#androidstudio-&#x67E5;&#x770B;&#x81EA;&#x5E26;&#x7684;sdk&#x4E2D;&#x7684;&#x6E90;&#x7801;"><b>2.1. </b>Androidstudio &#x67E5;&#x770B;&#x81EA;&#x5E26;&#x7684;sdk&#x4E2D;&#x7684;&#x6E90;&#x7801;</a></li><li><span class="title-icon "></span><a href="#androidstudio-&#x67E5;&#x770B;&#x6574;&#x4E2A;android&#x7CFB;&#x7EDF;&#x7684;&#x6E90;&#x7801;"><b>2.2. </b>Androidstudio &#x67E5;&#x770B;&#x6574;&#x4E2A;Android&#x7CFB;&#x7EDF;&#x7684;&#x6E90;&#x7801;</a></li><li><span class="title-icon "></span><a href="#&#x5176;&#x4ED6;"><b>2.3. </b>&#x5176;&#x4ED6;</a></li><ul><li><span class="title-icon "></span><a href="#throw-new-runtimeexceptionstub"><b>2.3.1. </b>throw new RuntimeException(&quot;Stub!&quot;);</a></li><li><span class="title-icon "></span><a href="#android-&#x5185;&#x90E8;api"><b>2.3.2. </b>android &#x5185;&#x90E8;API</a></li></ul></ul></ul></div><a href="#&#x5B89;&#x5353;&#x5386;&#x53F2;&#x7248;&#x672C;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x5B89;&#x5353;&#x5386;&#x53F2;&#x7248;&#x672C;"><a name="&#x5B89;&#x5353;&#x5386;&#x53F2;&#x7248;&#x672C;" class="anchor-navigation-ex-anchor" href="#&#x5B89;&#x5353;&#x5386;&#x53F2;&#x7248;&#x672C;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x5B89;&#x5353;&#x5386;&#x53F2;&#x7248;&#x672C;</h1>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th style="text-align:left">&#x7248;&#x672C;&#x540D;</th>
<th>API&#x7B49;&#x7EA7;</th>
<th>&#x53D1;&#x5E03;&#x65F6;&#x95F4;</th>
</tr>
</thead>
<tbody>
<tr>
<td>Android 11</td>
<td style="text-align:left">11.0</td>
<td>30</td>
<td>2020&#x5E74;9&#x6708;9&#x65E5;</td>
</tr>
<tr>
<td>Android 10  (Android Q)</td>
<td style="text-align:left">10.0</td>
<td>29</td>
<td>2019&#x5E74;9&#x6708;3&#x65E5;</td>
</tr>
<tr>
<td>Pie &#x9985;&#x997C;</td>
<td style="text-align:left">9.0</td>
<td>28</td>
<td>2018&#x5E74;8&#x6708;7&#x65E5;</td>
</tr>
<tr>
<td>Oreo &#x5965;&#x5229;&#x5965;</td>
<td style="text-align:left">8.0-8.1</td>
<td>26-27</td>
<td>2017&#x5E74;8&#x6708;22&#x65E5;(8.0)<br>2017&#x5E74;12&#x6708;5&#x65E5;(8.1)</td>
</tr>
<tr>
<td>Nougat &#x725B;&#x8F67;&#x7CD6;</td>
<td style="text-align:left">7.0-7.1.2</td>
<td>24-25</td>
<td>2016&#x5E74;5&#x6708;18&#x65E5;(7.0)</td>
</tr>
<tr>
<td>Marshmallow &#x68C9;&#x82B1;&#x7CD6;</td>
<td style="text-align:left">6.0-6.0.1</td>
<td>23</td>
<td>2015&#x5E74;5&#x6708;28&#x65E5;(6.0)</td>
</tr>
<tr>
<td>Lollipop &#x68D2;&#x68D2;&#x7CD6;</td>
<td style="text-align:left">5.0-5.1.1</td>
<td>21-22</td>
<td>2014&#x5E74;6&#x6708;25&#x65E5;(5.5)</td>
</tr>
<tr>
<td>KitKat &#x5947;&#x5DE7;</td>
<td style="text-align:left">4.4-4.4.4</td>
<td>19-20</td>
<td>2013&#x5E74;9&#x6708;3&#x65E5;(4.4)</td>
</tr>
<tr>
<td>Jelly Bean &#x679C;&#x51BB;&#x8C46;</td>
<td style="text-align:left">4.1-4.3</td>
<td>16-18</td>
<td>2012&#x5E74;6&#x6708;28&#x65E5;(4.1)</td>
</tr>
<tr>
<td>Ice Cream Sandwich &#x51B0;&#x6DC7;&#x6DCB;&#x4E09;&#x660E;&#x6CBB;</td>
<td style="text-align:left">4.0.1-4.0.4</td>
<td>14-15</td>
<td>2011&#x5E74;10&#x6708;19&#x65E5;(4.0.1)</td>
</tr>
<tr>
<td>Honeycomb &#x8702;&#x5DE2;</td>
<td style="text-align:left">3.0-3.2</td>
<td>11-13</td>
<td>2011&#x5E74;2&#x6708;24&#x65E5;(3.0)</td>
</tr>
<tr>
<td>Gingerbread &#x59DC;&#x997C;</td>
<td style="text-align:left">2.3-2.3.7</td>
<td>9-10</td>
<td>2010&#x5E74;12&#x6708;6&#x65E5;(2.3)</td>
</tr>
<tr>
<td>Froyo &#x51BB;&#x9178;&#x5976;</td>
<td style="text-align:left">2.2</td>
<td>8</td>
<td>2010&#x5E74;5&#x6708;20&#x65E5;</td>
</tr>
<tr>
<td>Eclair &#x95EA;&#x7535;&#x6CE1;&#x8299;</td>
<td style="text-align:left">2.0-2.1</td>
<td>5-7</td>
<td>2009&#x5E74;12&#x6708;3&#x65E5; (2.0)<br>2010&#x5E74;1&#x6708;12&#x65E5;(2.1)</td>
</tr>
<tr>
<td>Donut &#x751C;&#x751C;&#x5708;</td>
<td style="text-align:left">1.6</td>
<td>4</td>
<td>2009&#x5E74;9&#x6708;15&#x65E5;</td>
</tr>
<tr>
<td>Cupcake &#x7EB8;&#x676F;&#x86CB;&#x7CD5;</td>
<td style="text-align:left">1.5</td>
<td>3</td>
<td>2009&#x5E74;4&#x6708;17&#x65E5;</td>
</tr>
<tr>
<td>Bender &#x53D1;&#x6761;&#x673A;&#x5668;&#x4EBA;</td>
<td style="text-align:left">1.1</td>
<td>2</td>
<td>2009&#x5E74;2&#x6708;2&#x65E5;</td>
</tr>
<tr>
<td>Astro &#x94C1;&#x81C2;&#x963F;&#x7AE5;&#x6728;</td>
<td style="text-align:left">1.0</td>
<td>1</td>
<td>2008&#x5E74;9&#x6708;23&#x65E5;</td>
</tr>
</tbody>
</table>
<h1 id="&#x7CFB;&#x7EDF;&#x6E90;&#x7801;&#x9605;&#x8BFB;"><a name="&#x7CFB;&#x7EDF;&#x6E90;&#x7801;&#x9605;&#x8BFB;" class="anchor-navigation-ex-anchor" href="#&#x7CFB;&#x7EDF;&#x6E90;&#x7801;&#x9605;&#x8BFB;"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x7CFB;&#x7EDF;&#x6E90;&#x7801;&#x9605;&#x8BFB;</h1>
<h2 id="androidstudio-&#x67E5;&#x770B;&#x81EA;&#x5E26;&#x7684;sdk&#x4E2D;&#x7684;&#x6E90;&#x7801;"><a name="androidstudio-&#x67E5;&#x770B;&#x81EA;&#x5E26;&#x7684;sdk&#x4E2D;&#x7684;&#x6E90;&#x7801;" class="anchor-navigation-ex-anchor" href="#androidstudio-&#x67E5;&#x770B;&#x81EA;&#x5E26;&#x7684;sdk&#x4E2D;&#x7684;&#x6E90;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>2.1. Androidstudio &#x67E5;&#x770B;&#x81EA;&#x5E26;&#x7684;sdk&#x4E2D;&#x7684;&#x6E90;&#x7801;</h2>
<pre><code class="lang-text">1&#x3001;&#x5728; Androidstudio&#x4E2D;&#x70B9;&#x51FB;&#x81EA;&#x5DF1;&#x7684;&#x4EE3;&#x7801;&#x60F3;&#x5F80;&#x4E0B;&#x67E5;&#x770B;&#x6E90;&#x7801;&#x65F6;&#xFF0C;
throw new RuntimeException(&quot;Stub!&quot;
&#x8FD9;&#x662F;&#x56E0;&#x4E3A;&#x6CA1;&#x6709;&#x5339;&#x914D;&#x5230;&#x5BF9;&#x5E94;&#x7248;&#x672C;&#x7684;&#x6E90;&#x7801;&#xFF0C;&#x6B64;&#x65F6;&#x6309;&#x63D0;&#x793A;&#x4E0B;&#x8F7D;&#x6E90;&#x7801;&#x5373;&#x53EF;&#x3002;

2&#x3001;&#x6709;&#x4E00;&#x4E9B;&#x6E90;&#x7801;&#x88AB;&#x52A0;&#x4E86; @hide&#x6807;&#x7B7E;&#xFF0C;&#x4ECE; Androidstudio&#x4E2D;&#x770B;&#x4E0D;&#x5230;&#xFF0C;
&#x53EF;&#x4EE5;&#x4ECE; https://github.com/anggrayudi/android-hidden-api &#x4E0B;&#x8F7D;&#x5BF9;&#x5E94;&#x7248;&#x672C;&#x7684; android.jar &#x66FF;&#x6362;&#x6389;&#x3002;

3&#x3001;&#x66FF;&#x6362;&#x6389; android.jar &#x540E;&#xFF0C;Androidstudio &#x62A5;&#x9519; 
ERROR: Execution failed for MockableJarTransform 
&#x8FD9;&#x662F; com.android.tools.build:gradle:x.x.x &#x7248;&#x672C;&#x7684;&#x95EE;&#x9898;, &#x9AD8;&#x7248;&#x672C;&#x7684; gradle&#x4E2D;&#x52A0;&#x4E86;&#x4E00;&#x4E9B;&#x6821;&#x9A8C;&#x673A;&#x5236;&#xFF0C;
https://github.com/anggrayudi/android-hidden-api/issues/46

4&#x3001;&#x6700;&#x7EC8;&#x914D;&#x7F6E;
compileSdkVersion 27
targetSdkVersion 27
classpath &apos;com.android.tools.build:gradle:3.1.4&apos;
</code></pre>
<h2 id="androidstudio-&#x67E5;&#x770B;&#x6574;&#x4E2A;android&#x7CFB;&#x7EDF;&#x7684;&#x6E90;&#x7801;"><a name="androidstudio-&#x67E5;&#x770B;&#x6574;&#x4E2A;android&#x7CFB;&#x7EDF;&#x7684;&#x6E90;&#x7801;" class="anchor-navigation-ex-anchor" href="#androidstudio-&#x67E5;&#x770B;&#x6574;&#x4E2A;android&#x7CFB;&#x7EDF;&#x7684;&#x6E90;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>2.2. Androidstudio &#x67E5;&#x770B;&#x6574;&#x4E2A;Android&#x7CFB;&#x7EDF;&#x7684;&#x6E90;&#x7801;</h2>
<p>&#x53EA;&#x80FD;&#x9605;&#x8BFB;&#xFF0C;&#x4E0D;&#x80FD;&#x7F16;&#x8BD1;&#x3002;</p>
<pre><code class="lang-text">&#x8FD9;&#x91CC;&#x7ED9;&#x51FA; android-8.1.0_r1 &#x7248;&#x672C;&#x7684;&#x6E90;&#x7801;&#x3002;
&#x6E90;&#x7801;&#x5730;&#x5740; https://gitee.com/hnyer/android-8.1.0_r1_learning

1&#x3001;&#x4E0B;&#x8F7D;&#x597D;&#x6E90;&#x7801;&#x89E3;&#x538B;&#xFF0C;&#x6B64;&#x65F6;&#x5BFC;&#x5165;Androidstudio &#x53EA;&#x80FD;&#x67E5;&#x770B;&#xFF0C;&#x4E0D;&#x80FD;&#x70B9;&#x51FB;&#x8DF3;&#x8F6C;&#x3002;
2&#x3001;&#x5C06; android.iml &#x3001;android.ipr &#x4E24;&#x4E2A;&#x6587;&#x4EF6;&#x653E;&#x5230;&#x6839;&#x76EE;&#x5F55;&#x3002;&#x6B64;&#x65F6;&#x53EF;&#x80FD;&#x4ECD;&#x7136;&#x4E0D;&#x80FD;&#x8DF3;&#x8F6C;&#x3002;
3&#x3001;&#x8FDB;&#x5165; project Structure --&gt; Modules &#xFF0C;&#x5C06;&#x6240;&#x6709;&#x6587;&#x4EF6;&#x90FD;&#x8BBE;&#x7F6E;&#x6210; sources &#x9009;&#x9879;&#x3002;

4&#x3001;&#x5982;&#x679C;&#x67E5;&#x770B;&#x6E90;&#x7801;&#x7684;&#x65F6;&#x5019;&#x5C55;&#x793A;&#x7684;&#x662F; xxx.class &#xFF0C;&#x8FDE;&#x63A5;&#x7684;&#x662F; android.jar &#xFF0C;
&#x4F60;&#x5C06;&#x8FDE;&#x63A5;&#x6307;&#x5411; F:\sdk2\sources\android-29 &#x5373;&#x53EF;(&#x4E3E;&#x4F8B;)&#x3002;
</code></pre>
<h2 id="&#x5176;&#x4ED6;"><a name="&#x5176;&#x4ED6;" class="anchor-navigation-ex-anchor" href="#&#x5176;&#x4ED6;"><i class="fa fa-link" aria-hidden="true"></i></a>2.3. &#x5176;&#x4ED6;</h2>
<h3 id="throw-new-runtimeexceptionstub"><a name="throw-new-runtimeexceptionstub" class="anchor-navigation-ex-anchor" href="#throw-new-runtimeexceptionstub"><i class="fa fa-link" aria-hidden="true"></i></a>2.3.1. throw new RuntimeException(&quot;Stub!&quot;);</h3>
<p>&#x4EE3;&#x8868;&#x6CA1;&#x627E;&#x5230;&#x5BF9;&#x5E94;&#x7684;android&#x3002;&#x4E0B;&#x8F7D;&#x5BF9;&#x5E94;&#x7248;&#x672C;&#x7684;&#x6E90;&#x7801;&#x5C31;&#x53EF;&#x67E5;&#x770B;&#x3002;</p>
<h3 id="android-&#x5185;&#x90E8;api"><a name="android-&#x5185;&#x90E8;api" class="anchor-navigation-ex-anchor" href="#android-&#x5185;&#x90E8;api"><i class="fa fa-link" aria-hidden="true"></i></a>2.3.2. android &#x5185;&#x90E8;API</h3>
<p>&#x6709;&#x4E9B;&#x7C7B;&#x53EF;&#x4EE5;&#x5728;&#x6E90;&#x7801;&#x4E2D;&#x8C03;&#x7528;&#xFF0C;&#x4F46;&#x662F;&#x5728; Androidstudio &#x4E2D;&#x627E;&#x4E0D;&#x5230;&#xFF0C;&#x662F;&#x56E0;&#x4E3A;&#x8FD9;&#x662F; &#x5185;&#x90E8;API &#x4E0D;&#x5141;&#x8BB8;&#x7528;&#x6237;&#x8C03;&#x7528;&#x3002;
&#x4F8B;&#x5982; com.android.internal.policy; &#x6CE8;&#x610F;&#x5173;&#x952E;&#x5B57;&#x201C;internal&#x201D; &#x3002;
&#x5176;&#x4E2D; PhoneWindow &#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x79C1;&#x6709;API &#x3002;</p>
<footer class="page-footer"><span class="copyright">( no Copyright&#xFF0C;enjoy youself ! ) all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">The file was updated at :
2022-04-04 10:49:02
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../doc/Android常用代码.html" class="navigation navigation-prev " aria-label="Previous page: Android常用代码">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="其他框架源码.html" class="navigation navigation-next " aria-label="Next page: 其他框架源码">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"源码阅读","level":"1.7","depth":1,"next":{"title":"其他框架源码","level":"1.7.1","depth":2,"path":"chinese/源码阅读/其他框架源码.md","ref":"chinese/源码阅读/其他框架源码.md","articles":[]},"previous":{"title":"Android常用代码","level":"1.6","depth":1,"path":"chinese/doc/Android常用代码.md","ref":"chinese/doc/Android常用代码.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-plus","todo","anchor-navigation-ex","copy-code-button","fontsettings","tbfed-pagefooter","local-video","splitter","expandable-chapters","favicon","theme-comscore","local-video"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"( no Copyright，enjoy youself ! )","modify_label":"The file was updated at :","modify_format":"YYYY-MM-DD HH:mm:ss"},"todo":{},"splitter":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"favicon":{"shortcut":"assets/images/favicon.ico","bookmark":"assets/images/favicon.ico"},"theme-comscore":{},"local-video":{},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"Aivin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Aivin开发笔记","language":"zh-hans","gitbook":"*","description":"Aivin开发笔记"},"file":{"path":"chinese/源码阅读/源码阅读配置.md","mtime":"2022-04-04T02:49:02.904Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-04-04T03:47:09.782Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

